<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::iSerial类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="../../da/d18/classwheels_1_1i_serial-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::iSerial类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../d3/d9d/iserial_8hpp_source.html">iserial.hpp</a>&gt;</code></p>
<div class="dynheader">
类 wheels::iSerial 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/d95/classwheels_1_1i_serial__inherit__graph.png" border="0" usemap="#awheels_1_1i_serial_inherit__map" alt="Inheritance graph"/></div>
<map name="awheels_1_1i_serial_inherit__map" id="awheels_1_1i_serial_inherit__map">
<area shape="rect" title=" " alt="" coords="199,5,372,640"/>
<area shape="rect" href="../../de/d23/classwheels_1_1linux_serial.html" title=" " alt="" coords="5,688,173,1424"/>
<area shape="poly" title=" " alt="" coords="197,653,188,689,176,734,171,732,183,687,192,652"/>
<area shape="rect" href="../../d4/de7/classwheels_1_1t_serial.html" title=" " alt="" coords="198,763,373,1349"/>
<area shape="poly" title=" " alt="" coords="288,655,288,763,283,763,283,655"/>
<area shape="rect" href="../../d0/dfe/classwheels_1_1win_serial.html" title=" " alt="" coords="397,771,619,1341"/>
<area shape="poly" title=" " alt="" coords="379,622,424,770,419,772,374,623"/>
</map>
</div>
<div class="dynheader">
wheels::iSerial 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dd/d2a/classwheels_1_1i_serial__coll__graph.png" border="0" usemap="#awheels_1_1i_serial_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1i_serial_coll__map" id="awheels_1_1i_serial_coll__map">
<area shape="rect" title=" " alt="" coords="5,5,179,640"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a5e585bb076d6a01c8c9cdab92e20c5ac" id="r_a5e585bb076d6a01c8c9cdab92e20c5ac"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a> { <a class="el" href="#a5e585bb076d6a01c8c9cdab92e20c5acab50339a10e1de285ac99d4c3990b8693">NONE</a> = 0
, <a class="el" href="#a5e585bb076d6a01c8c9cdab92e20c5acabc21e6484530fc9d0313cb816b733396">ONE</a>
, <a class="el" href="#a5e585bb076d6a01c8c9cdab92e20c5aca75872ef0066c09a9f7741c8d0c0b8b34">ONE_P_FIVE</a>
, <a class="el" href="#a5e585bb076d6a01c8c9cdab92e20c5aca0f82d86afa0f5dc965c5c15aca58dcfb">TWO</a>
 }</td></tr>
<tr class="separator:a5e585bb076d6a01c8c9cdab92e20c5ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1661c3535b0ca7149121b8b00dddca0" id="r_ab1661c3535b0ca7149121b8b00dddca0"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab1661c3535b0ca7149121b8b00dddca0">parity</a> { <a class="el" href="#ab1661c3535b0ca7149121b8b00dddca0ab50339a10e1de285ac99d4c3990b8693">NONE</a> = 0
, <a class="el" href="#ab1661c3535b0ca7149121b8b00dddca0a6634c67f28ba9a80efe941b9519aa106">EVEN</a> = 1
, <a class="el" href="#ab1661c3535b0ca7149121b8b00dddca0a57a1355d5527355458c7cc08ba70bf94">ODD</a> = 2
 }</td></tr>
<tr class="separator:ab1661c3535b0ca7149121b8b00dddca0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86e499ffc36867fed86449541837b295" id="r_a86e499ffc36867fed86449541837b295"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a86e499ffc36867fed86449541837b295">flow</a> { <a class="el" href="#a86e499ffc36867fed86449541837b295ab50339a10e1de285ac99d4c3990b8693">NONE</a> = 0
, <a class="el" href="#a86e499ffc36867fed86449541837b295a7c144eae2e08db14c82e376603cc01f4">HARD</a>
, <a class="el" href="#a86e499ffc36867fed86449541837b295a52e743143106c12bfd73aae547fc6e2e">SOFT</a>
, <a class="el" href="#a86e499ffc36867fed86449541837b295a7db074166dc89fa0ffaf4d29fba1212c">KEEPBACK</a>
 }</td></tr>
<tr class="separator:a86e499ffc36867fed86449541837b295"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0046f5f91af625697c0474ae5084383" id="r_ac0046f5f91af625697c0474ae5084383"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a> { <br />
&#160;&#160;<a class="el" href="#ac0046f5f91af625697c0474ae5084383a6551c9ad625eaf9a74ae075a5f8b9536">ERR_BASE</a> = -1000
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383a89c845b1e9e073009724c86a746257ba">ERR_ALLOC_MEM</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383a7ed7d6d446b6c86f35c552d8592dc366">ERR_DEV_OCCUPIED</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383a1edc81c7de7df53ea7b1613c1edb38b3">ERR_DEV_NOT_EXIST</a>
, <br />
&#160;&#160;<a class="el" href="#ac0046f5f91af625697c0474ae5084383a5b719da2246330ac1f47883d0d9a5804">ERR_SEND_DATA_EMPTY</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383a3461eab809f4ff664d8595a5a6907ca5">ERR_SET_PARAMS</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383ae630c3d7fc79ba79a0ee07e992da58af">ERR_BAD_DEV</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383abc38228971e6cde947aa8fed6ae6ad3c">ERR_BAD_FD</a>
, <br />
&#160;&#160;<a class="el" href="#ac0046f5f91af625697c0474ae5084383a73d5b6774d0bf478479eebd498446063">ERR_OPEN_SERIAL</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383af9792569271aaf414353459cbe823420">ERR_CLOSE_UART</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383a3f84716229ae01aa63b9738ba850d89d">ERR_SEND_FAIL</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383a6ebdbb240bf52714bdc9681c02caf4ee">ERR_READ_DATA</a>
, <br />
&#160;&#160;<a class="el" href="#ac0046f5f91af625697c0474ae5084383acaa284f06babae6bf2ffd909a488ee6c">ERR_ALREADY_OPENED</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383a8b22b30b92d939b9fb6afbc86df700f1">SET_COM_FAIL</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383a71bb25e207215655764ee833d235290b">ERR_DATA_NULL</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383a429f092781c607ee7830322ab6622103">GET_COM_FAIL</a>
, <br />
&#160;&#160;<a class="el" href="#ac0046f5f91af625697c0474ae5084383a3ce50c3c0054820b2d594df51710ecac">ERR_STOP_READ_THD</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383a29cdf0170835f2c3c026fea1addf09fd">ERR_OVT</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383ad3e1514c8be3361f16cb220d06ffbf2e">ERR_ASYNC_WAIT_FAIL</a>
, <a class="el" href="#ac0046f5f91af625697c0474ae5084383aeccd7b350937d5cae8fe41908f29e33b">ERR_ASYNC_GET_RST_FAIL</a>
, <br />
&#160;&#160;<a class="el" href="#ac0046f5f91af625697c0474ae5084383ac916edd76e76d336d3d95ccfa839ca8a">OK</a> = 0
<br />
 }</td></tr>
<tr class="separator:ac0046f5f91af625697c0474ae5084383"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc49daaccbcc21e386b3fac67a479fcc" id="r_afc49daaccbcc21e386b3fac67a479fcc"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afc49daaccbcc21e386b3fac67a479fcc">emErrCode</a> = <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a></td></tr>
<tr class="separator:afc49daaccbcc21e386b3fac67a479fcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a5c97a1c2a4ad0302e04f633789742ae4" id="r_a5c97a1c2a4ad0302e04f633789742ae4"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5c97a1c2a4ad0302e04f633789742ae4">open</a> (int baud, int char_len, <a class="el" href="#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a> s, <a class="el" href="#ab1661c3535b0ca7149121b8b00dddca0">parity</a> p, <a class="el" href="#a86e499ffc36867fed86449541837b295">flow</a> f)=0</td></tr>
<tr class="memdesc:a5c97a1c2a4ad0302e04f633789742ae4"><td class="mdescLeft">&#160;</td><td class="mdescRight">打开串口。  <br /></td></tr>
<tr class="separator:a5c97a1c2a4ad0302e04f633789742ae4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad87bdf24e0f27d6285410e4d133c9ab1" id="r_ad87bdf24e0f27d6285410e4d133c9ab1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad87bdf24e0f27d6285410e4d133c9ab1">close</a> ()=0</td></tr>
<tr class="separator:ad87bdf24e0f27d6285410e4d133c9ab1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcb400225050bb4d269ad4e24b9cfd3d" id="r_afcb400225050bb4d269ad4e24b9cfd3d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afcb400225050bb4d269ad4e24b9cfd3d">send</a> (size_t len, const char *data)=0</td></tr>
<tr class="memdesc:afcb400225050bb4d269ad4e24b9cfd3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送数据。这个函数调用后立即返回，操作结果从回调中获取，因此这个函数执行返回后 并不一位置发送完成  <br /></td></tr>
<tr class="separator:afcb400225050bb4d269ad4e24b9cfd3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b795a5175156cdb27960db3b6ead564" id="r_a3b795a5175156cdb27960db3b6ead564"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3b795a5175156cdb27960db3b6ead564">evtOpen</a> (std::function&lt; void(<a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun)=0</td></tr>
<tr class="memdesc:a3b795a5175156cdb27960db3b6ead564"><td class="mdescLeft">&#160;</td><td class="mdescRight">操作事件设置操作事件  <br /></td></tr>
<tr class="separator:a3b795a5175156cdb27960db3b6ead564"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8aca3b048eddae137fe5a329ce0da91" id="r_ab8aca3b048eddae137fe5a329ce0da91"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab8aca3b048eddae137fe5a329ce0da91">evtClose</a> (std::function&lt; void(<a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun)</td></tr>
<tr class="separator:ab8aca3b048eddae137fe5a329ce0da91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e98cc0bbb63d96c8033188ebefeb94e" id="r_a7e98cc0bbb63d96c8033188ebefeb94e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7e98cc0bbb63d96c8033188ebefeb94e">evtSend</a> (std::function&lt; void(size_t, <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun)</td></tr>
<tr class="separator:a7e98cc0bbb63d96c8033188ebefeb94e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a471a0264bf9600dc5b8305e9f409c812" id="r_a471a0264bf9600dc5b8305e9f409c812"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a471a0264bf9600dc5b8305e9f409c812">evtRecv</a> (std::function&lt; void(size_t, const char *, <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun)</td></tr>
<tr class="separator:a471a0264bf9600dc5b8305e9f409c812"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0841ac68972c81b88a01537d92b18984" id="r_a0841ac68972c81b88a01537d92b18984"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0841ac68972c81b88a01537d92b18984">reset</a> ()=0</td></tr>
<tr class="memdesc:a0841ac68972c81b88a01537d92b18984"><td class="mdescLeft">&#160;</td><td class="mdescRight">复位串口。关闭串口重新打开  <br /></td></tr>
<tr class="separator:a0841ac68972c81b88a01537d92b18984"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af312457e1f3828f86f230cb599b872a5" id="r_af312457e1f3828f86f230cb599b872a5"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af312457e1f3828f86f230cb599b872a5">reset</a> (int baud, int char_len, <a class="el" href="#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a> s, <a class="el" href="#ab1661c3535b0ca7149121b8b00dddca0">parity</a> p, <a class="el" href="#a86e499ffc36867fed86449541837b295">flow</a> f)=0</td></tr>
<tr class="separator:af312457e1f3828f86f230cb599b872a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e4804af8e9971965685ccbb4500f9fc" id="r_a7e4804af8e9971965685ccbb4500f9fc"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7e4804af8e9971965685ccbb4500f9fc">is_open</a> ()=0</td></tr>
<tr class="memdesc:a7e4804af8e9971965685ccbb4500f9fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">串口是否打开  <br /></td></tr>
<tr class="separator:a7e4804af8e9971965685ccbb4500f9fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab17d3719e9133baba1a3ed852210e143" id="r_ab17d3719e9133baba1a3ed852210e143"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab17d3719e9133baba1a3ed852210e143">run</a> (bool run)=0</td></tr>
<tr class="memdesc:ab17d3719e9133baba1a3ed852210e143"><td class="mdescLeft">&#160;</td><td class="mdescRight">启动串口循环  <br /></td></tr>
<tr class="separator:ab17d3719e9133baba1a3ed852210e143"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a568297e82df18819a5b263132437d970" id="r_a568297e82df18819a5b263132437d970"><td class="memItemLeft" align="right" valign="top">virtual native_handle_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a568297e82df18819a5b263132437d970">native_handle</a> ()=0</td></tr>
<tr class="memdesc:a568297e82df18819a5b263132437d970"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取系统  <br /></td></tr>
<tr class="separator:a568297e82df18819a5b263132437d970"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15753b84ca120807c482260c1ff935b2" id="r_a15753b84ca120807c482260c1ff935b2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a15753b84ca120807c482260c1ff935b2">standby</a> ()=0</td></tr>
<tr class="memdesc:a15753b84ca120807c482260c1ff935b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">结束串口消息循环  <br /></td></tr>
<tr class="separator:a15753b84ca120807c482260c1ff935b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:aa4da33b7874fb53fbb8197f6d2c85c9d" id="r_aa4da33b7874fb53fbb8197f6d2c85c9d"><td class="memItemLeft" align="right" valign="top">static std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa4da33b7874fb53fbb8197f6d2c85c9d">errMsg</a> (<a class="el" href="#ac0046f5f91af625697c0474ae5084383">emErrCode</a> &amp;e)</td></tr>
<tr class="separator:aa4da33b7874fb53fbb8197f6d2c85c9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock">
<p class="definition">在文件 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html">iserial.hpp</a> 第 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html#l00015">15</a> 行定义.</p>
</div><h2 class="groupheader">成员类型定义说明</h2>
<a id="afc49daaccbcc21e386b3fac67a479fcc" name="afc49daaccbcc21e386b3fac67a479fcc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc49daaccbcc21e386b3fac67a479fcc">&#9670;&#160;</a></span>emErrCode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="#ac0046f5f91af625697c0474ae5084383">wheels::iSerial::emErrCode</a> = <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html">iserial.hpp</a> 第 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html#l00051">51</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员枚举类型说明</h2>
<a id="ac0046f5f91af625697c0474ae5084383" name="ac0046f5f91af625697c0474ae5084383"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0046f5f91af625697c0474ae5084383">&#9670;&#160;</a></span>err_code</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#ac0046f5f91af625697c0474ae5084383">wheels::iSerial::err_code</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a6551c9ad625eaf9a74ae075a5f8b9536" name="ac0046f5f91af625697c0474ae5084383a6551c9ad625eaf9a74ae075a5f8b9536"></a>ERR_BASE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a89c845b1e9e073009724c86a746257ba" name="ac0046f5f91af625697c0474ae5084383a89c845b1e9e073009724c86a746257ba"></a>ERR_ALLOC_MEM&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a7ed7d6d446b6c86f35c552d8592dc366" name="ac0046f5f91af625697c0474ae5084383a7ed7d6d446b6c86f35c552d8592dc366"></a>ERR_DEV_OCCUPIED&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a1edc81c7de7df53ea7b1613c1edb38b3" name="ac0046f5f91af625697c0474ae5084383a1edc81c7de7df53ea7b1613c1edb38b3"></a>ERR_DEV_NOT_EXIST&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a5b719da2246330ac1f47883d0d9a5804" name="ac0046f5f91af625697c0474ae5084383a5b719da2246330ac1f47883d0d9a5804"></a>ERR_SEND_DATA_EMPTY&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a3461eab809f4ff664d8595a5a6907ca5" name="ac0046f5f91af625697c0474ae5084383a3461eab809f4ff664d8595a5a6907ca5"></a>ERR_SET_PARAMS&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383ae630c3d7fc79ba79a0ee07e992da58af" name="ac0046f5f91af625697c0474ae5084383ae630c3d7fc79ba79a0ee07e992da58af"></a>ERR_BAD_DEV&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383abc38228971e6cde947aa8fed6ae6ad3c" name="ac0046f5f91af625697c0474ae5084383abc38228971e6cde947aa8fed6ae6ad3c"></a>ERR_BAD_FD&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a73d5b6774d0bf478479eebd498446063" name="ac0046f5f91af625697c0474ae5084383a73d5b6774d0bf478479eebd498446063"></a>ERR_OPEN_SERIAL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383af9792569271aaf414353459cbe823420" name="ac0046f5f91af625697c0474ae5084383af9792569271aaf414353459cbe823420"></a>ERR_CLOSE_UART&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a3f84716229ae01aa63b9738ba850d89d" name="ac0046f5f91af625697c0474ae5084383a3f84716229ae01aa63b9738ba850d89d"></a>ERR_SEND_FAIL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a6ebdbb240bf52714bdc9681c02caf4ee" name="ac0046f5f91af625697c0474ae5084383a6ebdbb240bf52714bdc9681c02caf4ee"></a>ERR_READ_DATA&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383acaa284f06babae6bf2ffd909a488ee6c" name="ac0046f5f91af625697c0474ae5084383acaa284f06babae6bf2ffd909a488ee6c"></a>ERR_ALREADY_OPENED&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a8b22b30b92d939b9fb6afbc86df700f1" name="ac0046f5f91af625697c0474ae5084383a8b22b30b92d939b9fb6afbc86df700f1"></a>SET_COM_FAIL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a71bb25e207215655764ee833d235290b" name="ac0046f5f91af625697c0474ae5084383a71bb25e207215655764ee833d235290b"></a>ERR_DATA_NULL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a429f092781c607ee7830322ab6622103" name="ac0046f5f91af625697c0474ae5084383a429f092781c607ee7830322ab6622103"></a>GET_COM_FAIL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a3ce50c3c0054820b2d594df51710ecac" name="ac0046f5f91af625697c0474ae5084383a3ce50c3c0054820b2d594df51710ecac"></a>ERR_STOP_READ_THD&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383a29cdf0170835f2c3c026fea1addf09fd" name="ac0046f5f91af625697c0474ae5084383a29cdf0170835f2c3c026fea1addf09fd"></a>ERR_OVT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383ad3e1514c8be3361f16cb220d06ffbf2e" name="ac0046f5f91af625697c0474ae5084383ad3e1514c8be3361f16cb220d06ffbf2e"></a>ERR_ASYNC_WAIT_FAIL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383aeccd7b350937d5cae8fe41908f29e33b" name="ac0046f5f91af625697c0474ae5084383aeccd7b350937d5cae8fe41908f29e33b"></a>ERR_ASYNC_GET_RST_FAIL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0046f5f91af625697c0474ae5084383ac916edd76e76d336d3d95ccfa839ca8a" name="ac0046f5f91af625697c0474ae5084383ac916edd76e76d336d3d95ccfa839ca8a"></a>OK&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">在文件 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html">iserial.hpp</a> 第 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html#l00027">27</a> 行定义.</p>

</div>
</div>
<a id="a86e499ffc36867fed86449541837b295" name="a86e499ffc36867fed86449541837b295"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86e499ffc36867fed86449541837b295">&#9670;&#160;</a></span>flow</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum class <a class="el" href="#a86e499ffc36867fed86449541837b295">wheels::iSerial::flow</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="a86e499ffc36867fed86449541837b295ab50339a10e1de285ac99d4c3990b8693" name="a86e499ffc36867fed86449541837b295ab50339a10e1de285ac99d4c3990b8693"></a>NONE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a86e499ffc36867fed86449541837b295a7c144eae2e08db14c82e376603cc01f4" name="a86e499ffc36867fed86449541837b295a7c144eae2e08db14c82e376603cc01f4"></a>HARD&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a86e499ffc36867fed86449541837b295a52e743143106c12bfd73aae547fc6e2e" name="a86e499ffc36867fed86449541837b295a52e743143106c12bfd73aae547fc6e2e"></a>SOFT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a86e499ffc36867fed86449541837b295a7db074166dc89fa0ffaf4d29fba1212c" name="a86e499ffc36867fed86449541837b295a7db074166dc89fa0ffaf4d29fba1212c"></a>KEEPBACK&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">在文件 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html">iserial.hpp</a> 第 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html#l00025">25</a> 行定义.</p>

</div>
</div>
<a id="ab1661c3535b0ca7149121b8b00dddca0" name="ab1661c3535b0ca7149121b8b00dddca0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1661c3535b0ca7149121b8b00dddca0">&#9670;&#160;</a></span>parity</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum class <a class="el" href="#ab1661c3535b0ca7149121b8b00dddca0">wheels::iSerial::parity</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="ab1661c3535b0ca7149121b8b00dddca0ab50339a10e1de285ac99d4c3990b8693" name="ab1661c3535b0ca7149121b8b00dddca0ab50339a10e1de285ac99d4c3990b8693"></a>NONE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ab1661c3535b0ca7149121b8b00dddca0a6634c67f28ba9a80efe941b9519aa106" name="ab1661c3535b0ca7149121b8b00dddca0a6634c67f28ba9a80efe941b9519aa106"></a>EVEN&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ab1661c3535b0ca7149121b8b00dddca0a57a1355d5527355458c7cc08ba70bf94" name="ab1661c3535b0ca7149121b8b00dddca0a57a1355d5527355458c7cc08ba70bf94"></a>ODD&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">在文件 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html">iserial.hpp</a> 第 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html#l00024">24</a> 行定义.</p>

</div>
</div>
<a id="a5e585bb076d6a01c8c9cdab92e20c5ac" name="a5e585bb076d6a01c8c9cdab92e20c5ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e585bb076d6a01c8c9cdab92e20c5ac">&#9670;&#160;</a></span>stop</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum class <a class="el" href="#a5e585bb076d6a01c8c9cdab92e20c5ac">wheels::iSerial::stop</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="a5e585bb076d6a01c8c9cdab92e20c5acab50339a10e1de285ac99d4c3990b8693" name="a5e585bb076d6a01c8c9cdab92e20c5acab50339a10e1de285ac99d4c3990b8693"></a>NONE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a5e585bb076d6a01c8c9cdab92e20c5acabc21e6484530fc9d0313cb816b733396" name="a5e585bb076d6a01c8c9cdab92e20c5acabc21e6484530fc9d0313cb816b733396"></a>ONE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a5e585bb076d6a01c8c9cdab92e20c5aca75872ef0066c09a9f7741c8d0c0b8b34" name="a5e585bb076d6a01c8c9cdab92e20c5aca75872ef0066c09a9f7741c8d0c0b8b34"></a>ONE_P_FIVE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a5e585bb076d6a01c8c9cdab92e20c5aca0f82d86afa0f5dc965c5c15aca58dcfb" name="a5e585bb076d6a01c8c9cdab92e20c5aca0f82d86afa0f5dc965c5c15aca58dcfb"></a>TWO&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">在文件 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html">iserial.hpp</a> 第 <a class="el" href="../../d3/d9d/iserial_8hpp_source.html#l00023">23</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ad87bdf24e0f27d6285410e4d133c9ab1" name="ad87bdf24e0f27d6285410e4d133c9ab1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad87bdf24e0f27d6285410e4d133c9ab1">&#9670;&#160;</a></span>close()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a> wheels::iSerial::close </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../de/d23/classwheels_1_1linux_serial.html#ae7aa105c917d919cda8239f2bc0b064c">wheels::linuxSerial</a>, <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html#a227706f07a251df72a7efadb48669dd9">wheels::tSerial&lt; T &gt;</a> , 以及 <a class="el" href="../../d0/dfe/classwheels_1_1win_serial.html#a3cd766c369c6f70ae1ade093b9e06ed5">wheels::winSerial</a> 内被实现.</p>

</div>
</div>
<a id="aa4da33b7874fb53fbb8197f6d2c85c9d" name="aa4da33b7874fb53fbb8197f6d2c85c9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4da33b7874fb53fbb8197f6d2c85c9d">&#9670;&#160;</a></span>errMsg()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string iSerial::errMsg </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="#ac0046f5f91af625697c0474ae5084383">emErrCode</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>e</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d2/d94/i_serial_8cpp_source.html">iSerial.cpp</a> 第 <a class="el" href="../../d2/d94/i_serial_8cpp_source.html#l00004">4</a> 行定义.</p>

</div>
</div>
<a id="ab8aca3b048eddae137fe5a329ce0da91" name="ab8aca3b048eddae137fe5a329ce0da91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8aca3b048eddae137fe5a329ce0da91">&#9670;&#160;</a></span>evtClose()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp; wheels::iSerial::evtClose </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(<a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/da4/classwheels_1_1i_serial_ab8aca3b048eddae137fe5a329ce0da91_icgraph.png" border="0" usemap="#ad2/da4/classwheels_1_1i_serial_ab8aca3b048eddae137fe5a329ce0da91_icgraph" alt=""/></div>
<map name="ad2/da4/classwheels_1_1i_serial_ab8aca3b048eddae137fe5a329ce0da91_icgraph" id="ad2/da4/classwheels_1_1i_serial_ab8aca3b048eddae137fe5a329ce0da91_icgraph">
<area shape="rect" title=" " alt="" coords="221,5,387,32"/>
<area shape="rect" href="../../d4/de7/classwheels_1_1t_serial.html#a4e7ecee621e0ea0b728d969378cc8268" title=" " alt="" coords="5,5,173,32"/>
<area shape="poly" title=" " alt="" coords="205,21,173,21,173,16,205,16"/>
</map>
</div>

</div>
</div>
<a id="a3b795a5175156cdb27960db3b6ead564" name="a3b795a5175156cdb27960db3b6ead564"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b795a5175156cdb27960db3b6ead564">&#9670;&#160;</a></span>evtOpen()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp; wheels::iSerial::evtOpen </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(<a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>操作事件设置操作事件 </p>

<p>在 <a class="el" href="../../de/d23/classwheels_1_1linux_serial.html#ae21be7510349d6d422b101cdc7c6f536">wheels::linuxSerial</a>, <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html#a49d25db90fbe011d03f001417a43ae51">wheels::tSerial&lt; T &gt;</a> , 以及 <a class="el" href="../../d0/dfe/classwheels_1_1win_serial.html#a5542f18701199699064900019e56a460">wheels::winSerial</a> 内被实现.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/da4/classwheels_1_1i_serial_a3b795a5175156cdb27960db3b6ead564_icgraph.png" border="0" usemap="#ad2/da4/classwheels_1_1i_serial_a3b795a5175156cdb27960db3b6ead564_icgraph" alt=""/></div>
<map name="ad2/da4/classwheels_1_1i_serial_a3b795a5175156cdb27960db3b6ead564_icgraph" id="ad2/da4/classwheels_1_1i_serial_a3b795a5175156cdb27960db3b6ead564_icgraph">
<area shape="rect" title="操作事件设置操作事件" alt="" coords="218,5,381,32"/>
<area shape="rect" href="../../d4/de7/classwheels_1_1t_serial.html#a49d25db90fbe011d03f001417a43ae51" title="操作事件设置操作事件" alt="" coords="5,5,170,32"/>
<area shape="poly" title=" " alt="" coords="202,21,170,21,170,16,202,16"/>
</map>
</div>

</div>
</div>
<a id="a471a0264bf9600dc5b8305e9f409c812" name="a471a0264bf9600dc5b8305e9f409c812"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a471a0264bf9600dc5b8305e9f409c812">&#9670;&#160;</a></span>evtRecv()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp; wheels::iSerial::evtRecv </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(size_t, const char *, <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/da4/classwheels_1_1i_serial_a471a0264bf9600dc5b8305e9f409c812_icgraph.png" border="0" usemap="#ad2/da4/classwheels_1_1i_serial_a471a0264bf9600dc5b8305e9f409c812_icgraph" alt=""/></div>
<map name="ad2/da4/classwheels_1_1i_serial_a471a0264bf9600dc5b8305e9f409c812_icgraph" id="ad2/da4/classwheels_1_1i_serial_a471a0264bf9600dc5b8305e9f409c812_icgraph">
<area shape="rect" title=" " alt="" coords="218,5,381,32"/>
<area shape="rect" href="../../d4/de7/classwheels_1_1t_serial.html#a793df13a4061ac9fae3da1973c9a5e69" title=" " alt="" coords="5,5,170,32"/>
<area shape="poly" title=" " alt="" coords="202,21,170,21,170,16,202,16"/>
</map>
</div>

</div>
</div>
<a id="a7e98cc0bbb63d96c8033188ebefeb94e" name="a7e98cc0bbb63d96c8033188ebefeb94e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e98cc0bbb63d96c8033188ebefeb94e">&#9670;&#160;</a></span>evtSend()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a> &amp; wheels::iSerial::evtSend </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(size_t, <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/da4/classwheels_1_1i_serial_a7e98cc0bbb63d96c8033188ebefeb94e_icgraph.png" border="0" usemap="#ad2/da4/classwheels_1_1i_serial_a7e98cc0bbb63d96c8033188ebefeb94e_icgraph" alt=""/></div>
<map name="ad2/da4/classwheels_1_1i_serial_a7e98cc0bbb63d96c8033188ebefeb94e_icgraph" id="ad2/da4/classwheels_1_1i_serial_a7e98cc0bbb63d96c8033188ebefeb94e_icgraph">
<area shape="rect" title=" " alt="" coords="217,5,379,32"/>
<area shape="rect" href="../../d4/de7/classwheels_1_1t_serial.html#ab10d43f10e14b6de6fa35fa2f983bf6a" title=" " alt="" coords="5,5,169,32"/>
<area shape="poly" title=" " alt="" coords="201,21,169,21,169,16,201,16"/>
</map>
</div>

</div>
</div>
<a id="a7e4804af8e9971965685ccbb4500f9fc" name="a7e4804af8e9971965685ccbb4500f9fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e4804af8e9971965685ccbb4500f9fc">&#9670;&#160;</a></span>is_open()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool wheels::iSerial::is_open </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>串口是否打开 </p>
<dl class="section return"><dt>返回</dt><dd>打开返回true , 否则返回false </dd></dl>

<p>在 <a class="el" href="../../de/d23/classwheels_1_1linux_serial.html#a41192c3d698e15dbd0e9c11427969774">wheels::linuxSerial</a>, <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html#adab34befe1989c529c3bdca090667573">wheels::tSerial&lt; T &gt;</a> , 以及 <a class="el" href="../../d0/dfe/classwheels_1_1win_serial.html#a23e7028ae6a6f98912ca9f8b168faa6e">wheels::winSerial</a> 内被实现.</p>

</div>
</div>
<a id="a568297e82df18819a5b263132437d970" name="a568297e82df18819a5b263132437d970"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a568297e82df18819a5b263132437d970">&#9670;&#160;</a></span>native_handle()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual native_handle_t wheels::iSerial::native_handle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>读取系统 </p>

<p>在 <a class="el" href="../../de/d23/classwheels_1_1linux_serial.html#ae409a2a29670472702e795ffb5048a5a">wheels::linuxSerial</a> , 以及 <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html#ac0cb50ce1dca8871b3cbfb601be82390">wheels::tSerial&lt; T &gt;</a> 内被实现.</p>

</div>
</div>
<a id="a5c97a1c2a4ad0302e04f633789742ae4" name="a5c97a1c2a4ad0302e04f633789742ae4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c97a1c2a4ad0302e04f633789742ae4">&#9670;&#160;</a></span>open()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a> wheels::iSerial::open </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>baud</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>char_len</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a></td>          <td class="paramname"><span class="paramname"><em>s</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="#ab1661c3535b0ca7149121b8b00dddca0">parity</a></td>          <td class="paramname"><span class="paramname"><em>p</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="#a86e499ffc36867fed86449541837b295">flow</a></td>          <td class="paramname"><span class="paramname"><em>f</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>打开串口。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">baud</td><td>波特率 </td></tr>
    <tr><td class="paramname">char_len</td><td>字符长度 </td></tr>
    <tr><td class="paramname">s</td><td>停止位 </td></tr>
    <tr><td class="paramname">p</td><td>校验位 </td></tr>
    <tr><td class="paramname">f</td><td>流控 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">成功返回OK,失败返回错误代码</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="../../de/d23/classwheels_1_1linux_serial.html#ae1eda65d5555203a3c5efbdf7c025b57">wheels::linuxSerial</a>, <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html#a90f1506ef984255632102f5f96c4d3fd">wheels::tSerial&lt; T &gt;</a> , 以及 <a class="el" href="../../d0/dfe/classwheels_1_1win_serial.html#aa241c9b4deeb3c89f8416e69b0d4e08d">wheels::winSerial</a> 内被实现.</p>

</div>
</div>
<a id="a0841ac68972c81b88a01537d92b18984" name="a0841ac68972c81b88a01537d92b18984"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0841ac68972c81b88a01537d92b18984">&#9670;&#160;</a></span>reset() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a> wheels::iSerial::reset </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>复位串口。关闭串口重新打开 </p>

<p>在 <a class="el" href="../../de/d23/classwheels_1_1linux_serial.html#a29a53363016957fd31b13ce4afc53215">wheels::linuxSerial</a>, <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html#ab93078e80d178b29dfe7574d67ba087c">wheels::tSerial&lt; T &gt;</a> , 以及 <a class="el" href="../../d0/dfe/classwheels_1_1win_serial.html#a449303d38f1ea9648dd8e0478ac9dd37">wheels::winSerial</a> 内被实现.</p>

</div>
</div>
<a id="af312457e1f3828f86f230cb599b872a5" name="af312457e1f3828f86f230cb599b872a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af312457e1f3828f86f230cb599b872a5">&#9670;&#160;</a></span>reset() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a> wheels::iSerial::reset </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>baud</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>char_len</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a></td>          <td class="paramname"><span class="paramname"><em>s</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="#ab1661c3535b0ca7149121b8b00dddca0">parity</a></td>          <td class="paramname"><span class="paramname"><em>p</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="#a86e499ffc36867fed86449541837b295">flow</a></td>          <td class="paramname"><span class="paramname"><em>f</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../de/d23/classwheels_1_1linux_serial.html#ab7b40c9251d0968ad29e1c35bd2e2022">wheels::linuxSerial</a>, <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html#a928cf98c35d817f0fada6e73cdf0f22c">wheels::tSerial&lt; T &gt;</a> , 以及 <a class="el" href="../../d0/dfe/classwheels_1_1win_serial.html#a38d31abd488b9d860fbc47d540ff1fe9">wheels::winSerial</a> 内被实现.</p>

</div>
</div>
<a id="ab17d3719e9133baba1a3ed852210e143" name="ab17d3719e9133baba1a3ed852210e143"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab17d3719e9133baba1a3ed852210e143">&#9670;&#160;</a></span>run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void wheels::iSerial::run </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>run</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>启动串口循环 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">run[</td><td>I ], true，启动；false停止 </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="../../de/d23/classwheels_1_1linux_serial.html#a474d5ad2e7bb59dc4a6ed1d46a80d056">wheels::linuxSerial</a>, <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html#a7ffd8163efa9ca6986948ba0f246e8f6">wheels::tSerial&lt; T &gt;</a> , 以及 <a class="el" href="../../d0/dfe/classwheels_1_1win_serial.html#abcaf1f26fd2a449489a9a7353817a5e3">wheels::winSerial</a> 内被实现.</p>

</div>
</div>
<a id="afcb400225050bb4d269ad4e24b9cfd3d" name="afcb400225050bb4d269ad4e24b9cfd3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcb400225050bb4d269ad4e24b9cfd3d">&#9670;&#160;</a></span>send()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="#ac0046f5f91af625697c0474ae5084383">err_code</a> wheels::iSerial::send </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>发送数据。这个函数调用后立即返回，操作结果从回调中获取，因此这个函数执行返回后 并不一位置发送完成 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">len</td><td>， 要发送的数据长度 </td></tr>
    <tr><td class="paramname">data,要发送的数据</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="../../de/d23/classwheels_1_1linux_serial.html#ae173022d0f2cec8917b6ef9ed6b3ed31">wheels::linuxSerial</a>, <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html#a21c9989eb705b839dd2621198413cc7f">wheels::tSerial&lt; T &gt;</a> , 以及 <a class="el" href="../../d0/dfe/classwheels_1_1win_serial.html#a48094c7504012c0208ad093373ba6c87">wheels::winSerial</a> 内被实现.</p>

</div>
</div>
<a id="a15753b84ca120807c482260c1ff935b2" name="a15753b84ca120807c482260c1ff935b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15753b84ca120807c482260c1ff935b2">&#9670;&#160;</a></span>standby()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void wheels::iSerial::standby </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>结束串口消息循环 </p>

<p>在 <a class="el" href="../../de/d23/classwheels_1_1linux_serial.html#a9394e61eb3763eb72c902a2fef68ddb2">wheels::linuxSerial</a>, <a class="el" href="../../d4/de7/classwheels_1_1t_serial.html#ad16c2f986e64677c4318d8d623265e4e">wheels::tSerial&lt; T &gt;</a> , 以及 <a class="el" href="../../d0/dfe/classwheels_1_1win_serial.html#ae5ff2a3c30a11646121dc829f501697b">wheels::winSerial</a> 内被实现.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/details/<a class="el" href="../../d3/d9d/iserial_8hpp_source.html">iserial.hpp</a></li>
<li>src/details/<a class="el" href="../../d2/d94/i_serial_8cpp_source.html">iSerial.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
